1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27 package org.smartcrawler.retriever;
28
29 import org.smartcrawler.common.Link;
30
31 /***
32 *
33 *
34 * @author <a href="mailto:pozzad@alice.it">Davide Pozza</a>
35 * @version <tt>$Revision: 1.4 $</tt>
36 */
37 public class Content {
38
39 private byte[] buffer;
40 private String contentType;
41 private Link link;
42
43 /*** Creates a new instance of Content */
44 public Content() {
45 }
46
47 /***
48 *
49 * @return
50 */
51 public byte[] getBuffer() {
52 return buffer;
53 }
54
55 /***
56 *
57 * @param buffer
58 */
59 public void setBuffer(byte[] buffer) {
60 this.buffer = buffer;
61 }
62
63 /***
64 *
65 * @return
66 */
67 public String getContentType() {
68 return contentType;
69 }
70
71 /***
72 *
73 * @param contentType
74 */
75 public void setContentType(String contentType) {
76 this.contentType = contentType;
77 }
78
79 /***
80 *
81 * @return
82 */
83 public Link getLink() {
84 return link;
85 }
86
87 /***
88 *
89 * @param link
90 */
91 public void setLink(Link link) {
92 this.link = link;
93 }
94
95 }